//
//  SCPhotoHelper.h
//  header
//
//  Created by Angelo on 15/8/17.
//  Copyright (c) 2015年 Angelo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef enum {
    SelectWithCamera,
    SelectWithPhotoLibrary
}TypeSelectPhoto;

typedef void(^SCPhotoHelperHeadComplete)(UIImage *headImage);
typedef void(^SCPhotoHelperComplete)(NSArray *assets);

@interface SCPhotoHelper : NSObject<UINavigationControllerDelegate, UIImagePickerControllerDelegate>


@property (nonatomic, assign)   NSInteger                  maxCount;
@property (nonatomic, copy)     SCPhotoHelperHeadComplete  headCompleteBlock;
@property (nonatomic, copy)     SCPhotoHelperComplete      completeBlock;


+ (SCPhotoHelper *)sharedInstance;

/**
 * @Author AngeloTsui, 16/04/26
 *
 * 选取头像，该方法会弹出视图，选择在相册选取还是调用相机
 *
 * @param headCompleteBlock 返回选取的头像
 */
- (void)chooseHeadPicture:(SCPhotoHelperHeadComplete) headCompleteBlock;

/**
 * @Author AngeloTsui, 16/04/26
 *
 * 选取图片，该方法会弹出视图，选择在相册选取还是调用相机
 *
 * @param completeBlock 返回选取的图片
 */
- (void)choosePicture:(SCPhotoHelperComplete)         completeBlock;


/**
 * @Author AngeloTsui, 16/04/26
 *
 * 选取图片
 *
 * @param completeBlock 返回选取的图片
 * @param type          选取图片方式
 */
- (void)choosePicture:(SCPhotoHelperComplete)completeBlock type:(TypeSelectPhoto) type;

@end
